home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import javax.swing.AbstractAction;
- import javax.swing.tree.TreePath;
-
- public class BasicTreeUI$TreeToggleAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicTreeUI this$0;
-
- public BasicTreeUI$TreeToggleAction(BasicTreeUI var1, String var2) {
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- if (this.this$0.tree != null) {
- int var2 = BasicTreeUI.access$5(this.this$0);
- if (var2 != -1 && !this.this$0.isLeaf(var2)) {
- TreePath var3 = BasicTreeUI.access$9(this.this$0);
- TreePath var4 = BasicTreeUI.access$4(this.this$0);
- this.this$0.toggleExpandState(this.this$0.getPathForRow(this.this$0.tree, var2));
- BasicTreeUI.access$2(this.this$0, var3);
- BasicTreeUI.access$3(this.this$0, var4);
- }
- }
-
- }
-
- public boolean isEnabled() {
- return this.this$0.tree != null && this.this$0.tree.isEnabled();
- }
- }
-